﻿define([
], function () {

    var controller = BackboneMVC.Controller.extend({
        name: 'preferenceManager',
        show: function () {
            require(['views/crud/preference/super/preferenceManager'], function (View) {
                var view = new View();
                view.render();
            });
        },
        showEdit: function (id) {
            require(['views/crud/preference/super/preferenceEdit'], function (View) {
                var view = new View({ preferenceId: id });
                view.render();
            });
        }
    });
    return controller;
});